class TallGrassRenderer : public PlantRenderer
{
public:
	TallGrassRenderer(ITexture *texture) :
		PlantRenderer(texture, Point2i(0, 0))
	{
	}

	void SetTexture(const Block &block)
	{
		switch (block.Data)
		{
			case 0:
				Color = Colorb::White;
				TexturePosition = Point2i(7 * 16, 3 * 16);
				break;
			case 1:
				Color = Colorb(73, 205, 51, 255);
				TexturePosition = Point2i(7 * 16, 2 * 16);
				break;
			case 2:
				Color = Colorb(73, 205, 51, 255);
				TexturePosition = Point2i(8 * 16, 3 * 16);
				break;
		}
	}

	void Render(Schematic *schematic, RendererBase *renderer, const Block &block, const Point3i &position)
	{
		SetTexture(block);
		PlantRenderer::Render(schematic, renderer, block, position);
	}
};